import {commonRemove, getCommonPage, getParams, postData, postParams} from "@/api/business/common";

export const getPage = (page, params) => {
  return getCommonPage('/api/uic-system/fillprofitsharerbill/page', page, params)
}

export const getStatPage = (page, params) => {
  return getCommonPage('/api/uic-system/fillprofitsharerbill/stat/page', page, params)
}

export const getStatRecordPage = (page, params) => {
  return getCommonPage('/api/uic-system/fillprofitsharerecord/page', page, params)
}


export const summary = () => {
  return getParams('/api/uic-system/fillprofitsharerbill/stat/summary', {})
}

export const remove = (id) => {
  return commonRemove('/api/uic-system/fillprofitsharerbill/remove', id)
}

export const settled = (id, billNo, isSettled) => {
  return postData('/api/uic-system/fillprofitsharerbill/updateSettled', {id, billNo, isSettled})
}
